package com.example.spring.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @Description
 * @Author zhengmw
 * @Data 2024/5/15 20:18
 */
@Configuration(proxyBeanMethods = false)
public class RabbitQueueConfiguration {

    /**
     * 启动时创建队列
     * @return
     */
    @Bean
    public Queue queue() {
        return new Queue("hello");
    }
}
